﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ListaIscritti.aspx.cs" Inherits="Autenticazione.ListaIscritti" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href=Stile.css rel=Stylesheet type="text/css"></link>
</head>
<body>
    <form id="form1" runat="server">
        <table id="tblFights" border="0px" width="100%">
            <tr>
                <td colspan="2" align="center" style="color: #66FF99; font-size: small;">
                    <span style="color: aquamarine"><b>Azzurro</b></span> = Contatto Leggero – <span style="color: rosybrown"><b>Rosso</b></span> = Contatto Pieno.
                </td>
            </tr>
            <tr>
                <td colspan="2">&nbsp;</td>
            </tr>
            <tr>
                <td colspan="2" align="center">
                    <table width="100%" border="0px">
                    <tr>
                        <td align="center">Lista degli atleti iscritti.</td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td align="left">Ricerca per tipo di lotta:&nbsp;<asp:DropDownList ID="cboFight" runat="server" AutoPostBack="true" OnSelectedIndexChanged="cboFight_Changed"></asp:DropDownList></td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                    <td align="left">
                    <asp:DataGrid runat="server" ID="dtgFights" Width="100%" AutoGenerateColumns="false"
                    PageSize='50' AllowPaging="true" AllowCustomPaging="true" DataKeyField="Id" AllowSorting="false"
                    onpageindexchanged="dtgFights_SelectedIndexChanged" GridLines="Horizontal">
                    <AlternatingItemStyle BackColor="#CCCCCC" />
                    <Columns>
                        <asp:TemplateColumn HeaderText="Club" HeaderStyle-HorizontalAlign="center" HeaderStyle-VerticalAlign="middle">
                            <ItemTemplate><label id="lblGDClub" runat="server"><%# DataBinder.Eval(Container.DataItem, "Nome") %></label></ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                        </asp:TemplateColumn>
                         <asp:TemplateColumn HeaderText="Atleta" HeaderStyle-HorizontalAlign="center" HeaderStyle-VerticalAlign="middle">
                            <ItemTemplate><label id="lblGDAtleta" runat="server"><%# DataBinder.Eval(Container.DataItem, "FullName") %></label></ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                        </asp:TemplateColumn>
                        <asp:TemplateColumn HeaderText="Peso" HeaderStyle-HorizontalAlign="center" HeaderStyle-VerticalAlign="middle">
                            <ItemTemplate><label id="lblGDAtletaPeso" runat="server"><%# DataBinder.Eval(Container.DataItem, "Weight") %></label></ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                        </asp:TemplateColumn>
                        <asp:TemplateColumn HeaderStyle-ForeColor="Aquamarine" HeaderText="Chauss Fight Assalto" HeaderStyle-HorizontalAlign="center" HeaderStyle-VerticalAlign="middle">
                            <ItemTemplate>
                                <%#  GetIscrizione(1, DataBinder.Eval(Container.DataItem, "Iscrizioni"))%>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                        </asp:TemplateColumn>
                        <asp:TemplateColumn HeaderStyle-ForeColor="Aquamarine" HeaderText="Savate Assalto" HeaderStyle-HorizontalAlign="center" HeaderStyle-VerticalAlign="middle">
                            <ItemTemplate>
                                <%#  GetIscrizione(2, DataBinder.Eval(Container.DataItem, "Iscrizioni"))%>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                        </asp:TemplateColumn>
                        <asp:TemplateColumn HeaderStyle-ForeColor="Aquamarine" HeaderText="Free Punch Light" HeaderStyle-HorizontalAlign="center" HeaderStyle-VerticalAlign="middle">
                            <ItemTemplate>
                                <%#  GetIscrizione(3, DataBinder.Eval(Container.DataItem, "Iscrizioni"))%>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                        </asp:TemplateColumn>
                        <asp:TemplateColumn HeaderStyle-ForeColor="Aquamarine" HeaderText="Light Contact" HeaderStyle-HorizontalAlign="center" HeaderStyle-VerticalAlign="middle">
                            <ItemTemplate>
                                <%#  GetIscrizione(4, DataBinder.Eval(Container.DataItem, "Iscrizioni"))%>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                        </asp:TemplateColumn>
                        <asp:TemplateColumn HeaderStyle-ForeColor="Aquamarine" HeaderText="KickLight" HeaderStyle-HorizontalAlign="center" HeaderStyle-VerticalAlign="middle">
                            <ItemTemplate>
                                <%#  GetIscrizione(5, DataBinder.Eval(Container.DataItem, "Iscrizioni"))%>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                        </asp:TemplateColumn>
                        <asp:TemplateColumn HeaderStyle-ForeColor="Aquamarine" HeaderText="K1 Light" HeaderStyle-HorizontalAlign="center" HeaderStyle-VerticalAlign="middle">
                            <ItemTemplate>
                                <%#  GetIscrizione(6, DataBinder.Eval(Container.DataItem, "Iscrizioni"))%>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                        </asp:TemplateColumn>
                        <asp:TemplateColumn HeaderStyle-ForeColor="Aquamarine" HeaderText="Thai Light" HeaderStyle-HorizontalAlign="center" HeaderStyle-VerticalAlign="middle">
                            <ItemTemplate>
                                <%#  GetIscrizione(7, DataBinder.Eval(Container.DataItem, "Iscrizioni"))%>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                        </asp:TemplateColumn>
                        <asp:TemplateColumn HeaderStyle-ForeColor="Aquamarine" HeaderText="MMA Light" HeaderStyle-HorizontalAlign="center" HeaderStyle-VerticalAlign="middle">
                            <ItemTemplate>
                                <%#  GetIscrizione(8, DataBinder.Eval(Container.DataItem, "Iscrizioni"))%>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                        </asp:TemplateColumn>
                        <asp:TemplateColumn HeaderStyle-ForeColor="Aquamarine" HeaderText="Grappling" HeaderStyle-HorizontalAlign="center" HeaderStyle-VerticalAlign="middle">
                            <ItemTemplate>
                                <%#  GetIscrizione(9, DataBinder.Eval(Container.DataItem, "Iscrizioni"))%>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                        </asp:TemplateColumn>
                        <asp:TemplateColumn HeaderStyle-ForeColor="RosyBrown" HeaderText="Chauss Fight Combact" HeaderStyle-HorizontalAlign="center" HeaderStyle-VerticalAlign="middle">
                            <ItemTemplate>
                                <%#  GetIscrizione(10, DataBinder.Eval(Container.DataItem, "Iscrizioni"))%>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                        </asp:TemplateColumn>
                        <asp:TemplateColumn HeaderStyle-ForeColor="RosyBrown" HeaderText="Savate Combact" HeaderStyle-HorizontalAlign="center" HeaderStyle-VerticalAlign="middle">
                            <ItemTemplate>
                                <%#  GetIscrizione(11, DataBinder.Eval(Container.DataItem, "Iscrizioni"))%>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                        </asp:TemplateColumn>
                        <asp:TemplateColumn HeaderStyle-ForeColor="RosyBrown" HeaderText="Free Punch" HeaderStyle-HorizontalAlign="center" HeaderStyle-VerticalAlign="middle">
                            <ItemTemplate>
                                <%#  GetIscrizione(12, DataBinder.Eval(Container.DataItem, "Iscrizioni"))%>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                        </asp:TemplateColumn>
                        <asp:TemplateColumn HeaderStyle-ForeColor="RosyBrown" HeaderText="Low Kick" HeaderStyle-HorizontalAlign="center" HeaderStyle-VerticalAlign="middle">
                            <ItemTemplate>
                                <%#  GetIscrizione(13, DataBinder.Eval(Container.DataItem, "Iscrizioni"))%>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                        </asp:TemplateColumn>
                        <asp:TemplateColumn HeaderStyle-ForeColor="RosyBrown" HeaderText="K1 Rules" HeaderStyle-HorizontalAlign="center" HeaderStyle-VerticalAlign="middle">
                            <ItemTemplate>
                                <%#  GetIscrizione(14, DataBinder.Eval(Container.DataItem, "Iscrizioni"))%>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                        </asp:TemplateColumn>
                        <asp:TemplateColumn HeaderStyle-ForeColor="RosyBrown" HeaderText="Thai Full Rules" HeaderStyle-HorizontalAlign="center" HeaderStyle-VerticalAlign="middle">
                            <ItemTemplate>
                                <%#  GetIscrizione(15, DataBinder.Eval(Container.DataItem, "Iscrizioni"))%>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                        </asp:TemplateColumn>
                        <asp:TemplateColumn HeaderStyle-ForeColor="RosyBrown" HeaderText="MMA Full Rules" HeaderStyle-HorizontalAlign="center" HeaderStyle-VerticalAlign="middle">
                            <ItemTemplate>
                                <%#  GetIscrizione(16, DataBinder.Eval(Container.DataItem, "Iscrizioni"))%>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                        </asp:TemplateColumn>
                    </Columns>
                    <EditItemStyle BackColor="Black" ForeColor="White" />
                    <FooterStyle BackColor="#666666" />
                    <HeaderStyle BackColor="#666666" Font-Bold="True" Font-Size="Small" />
                    <ItemStyle BackColor="White" ForeColor="Black" HorizontalAlign="Center" 
                            VerticalAlign="Middle" Font-Size="Small" />
                    <PagerStyle VerticalAlign="Middle" Visible="true" HorizontalAlign="Center" 
                            NextPageText="&gt;" PrevPageText="&lt;" Mode="NumericPages" PageButtonCount="5"
                            BackColor="#979797" ForeColor="Black" Wrap="False" Font-Size="Small">
                    </PagerStyle>
                    </asp:DataGrid>
                </td>
                </tr>
                </table>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>

